package com.hafu.service;
import com.hafu.dao.RuKuMainDao;
import com.hafu.model.RuKuMain;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;

public class RuKuService {
    private RuKuMainDao ruKuMainDao = new RuKuMainDao();


    public ArrayList<RuKuMain> getRuKuList(RuKuMain ruku) {
        return ruKuMainDao.getRuKuMainByName(ruku);
    }

    public Boolean updateRuKu(RuKuMain ruku) {
        return ruKuMainDao.updateRuKu(ruku);
    }

    public int addRuKu(RuKuMain rukuMain) throws SQLException {
        return ruKuMainDao.addRuKu(rukuMain);
    }
}